import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_tb_base_measures_task_entity.g.dart';


@JsonSerializable()
class GetTbBaseMeasuresTaskEntity {

	GetTbBaseMeasuresTaskEntity();

	factory GetTbBaseMeasuresTaskEntity.fromJson(Map<String, dynamic> json) => $GetTbBaseMeasuresTaskEntityFromJson(json);
	String? id;
	String? riskObjectId;
	String? riskObjectName;
	String? riskUnitId;
	String? riskUnitName;
	String? riskEventId;
	String? riskEventName;
	String? riskMeasureId;
	String? riskMeasureName;
	String? companyCode;
	String? allocationId;
	dynamic allocationName;
	String? allocationType;
	dynamic season;
	String? troubleshootContent;
	String? workType;
	String? controlMeasures;
	String? controlMeasuresLabel;
	String? workKind;
	String? workKindLabel;
	String? taskNum;
	String? taskStatus;
	String? checkCycle;
  String? checkCycleUnit;
  String?  checkCycleUnitLabel;
  String? workStartTime;
  String? workEndTime;
  String? workDayType;
  String?  workDayTypeLabel;
	String? instrumentId;
	String? deleted;
	String? createDate;
	String? createBy;
	String? createById;
	String? updateById;
	String? updateDate;
	String? updateBy;
	String? hazardCode;
	String? checkMeans;
	int? status;
	int? inspectionStatus;
	dynamic effectiveTime;
	int? controllable;
	String? departmentId;
	String? userId;
	String? warehouseId;
	dynamic startRefreshTime;
	dynamic endRefreshTime;
	int? isUpload;
	int? isApprove;
	dynamic taskTimeNodeTables;
	List<GetTbBaseMeasuresTaskWorkKindCycleChangeList>? workKindCycleChangeList;

	Map<String, dynamic> toJson() => $GetTbBaseMeasuresTaskEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GetTbBaseMeasuresTaskWorkKindCycleChangeList {

	GetTbBaseMeasuresTaskWorkKindCycleChangeList();

	factory GetTbBaseMeasuresTaskWorkKindCycleChangeList.fromJson(Map<String, dynamic> json) => $GetTbBaseMeasuresTaskWorkKindCycleChangeListFromJson(json);
	String? id;
	String? taskId;
	String? attribute;
	String? startTime;
	String? endTime;
	String? checkCycle;
	String? checkCycleUnit;
	String? checkCycleUnitLabel;
	String? hourStartTime;
	String? hourEndTime;
  String? executeType;
  String? executeTypeLabel;
	String? status;
	String? createBy;
	String? createDate;
	String? updateBy;
	String? updateDate;

	Map<String, dynamic> toJson() => $GetTbBaseMeasuresTaskWorkKindCycleChangeListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
